x86/mm: introduce a p2m class
authorEd White <edmund.h.white@intel.com>
Tue, 3 Feb 2015 10:27:46 +0000 (11:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Feb 2015 10:27:46 +0000 (11:27 +0100)
commit8fe99c468d977ee077ef064618973e0aca578117
treea03eca963e017fadfd8c047f6072042ab3047612
parente1890c4261d62ad4ddca23dc2305ae636b3b4c14
x86/mm: introduce a p2m class

Use the class to differentiate between host and nested p2m's, and
potentially other classes in the future.

Fix p2m class checks that implicitly assume nested and host are
the only two classes that will ever exist.

Signed-off-by: Ed White <edmund.h.white@intel.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/guest_walk.c
xen/arch/x86/mm/hap/guest_walk.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h